home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / miauto.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  5KB  |  220 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    auto_dialogId ;
  9. extern int    auto_messageId[7] ;
  10. extern int    auto_icon[2] ;
  11. extern int    auto_bottonId[2] ;
  12. extern int    igo_autoset() ;
  13. extern int    igo_autocancel() ;
  14. extern int    auto_numbox ;
  15.  
  16. #define ALIGN    4
  17. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  18.  
  19. /*    MMI_init 用データ    */
  20.  
  21. /*    ヘッダ    */
  22.  
  23. MMIINIT    initDataMIAUTO = { "MmiInit",  12, 0 } ;
  24.  
  25. /* auto_dialogId */
  26.  
  27. static MMIPACKET d001 = {    &auto_dialogId,
  28.                             NULL,
  29.                             &MJ_DIALOGL40,
  30.                             OFFSET(DIALOGL40),
  31.                             MS_NONE
  32.                         } ;
  33. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  34.                              197,  68, 427, 352, 8, 7, 8,
  35.                             MS_SRECTL40 | MS_FRAMEL40,
  36.                             NULL,   0,   0
  37.                         } ;
  38.  
  39. /* auto_messageId[0] */
  40.  
  41. static MMIPACKET d002 = {    &auto_messageId[0],
  42.                             &auto_dialogId,
  43.                             &MJ_MSGL40,
  44.                             OFFSET(MSGL40),
  45.                             MS_NONE
  46.                         } ;
  47. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  48.                              233,  89, 392, 112, 8,15, 8,
  49.                             MS_NONEL40,
  50.                             "自動再生",
  51.                                1,  12,  12,
  52.                             MS_NONEL40,
  53.                               10,   0
  54.                         } ;
  55.  
  56. /* auto_icon[1] */
  57.  
  58. static MMIPACKET d003 = {    &auto_icon[1],
  59.                             &auto_dialogId,
  60.                             &MJ_TICONL40,
  61.                             OFFSET(TICONL40),
  62.                             MS_NONE
  63.                         } ;
  64. static TICONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  65.                              232, 156, 245, 175, 8, 7, 8,
  66.                             MS_NONEL40,
  67.                             0,
  68.                             0x0000, 259, 260
  69.                         } ;
  70.  
  71. /* auto_icon[0] */
  72.  
  73. static MMIPACKET d004 = {    &auto_icon[0],
  74.                             &auto_dialogId,
  75.                             &MJ_TICONL40,
  76.                             OFFSET(TICONL40),
  77.                             MS_NONE
  78.                         } ;
  79. static TICONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  80.                              232, 126, 245, 145, 8, 7, 8,
  81.                             MS_NONEL40,
  82.                             0,
  83.                             0x0000, 259, 260
  84.                         } ;
  85.  
  86. /* auto_messageId[1] */
  87.  
  88. static MMIPACKET d005 = {    &auto_messageId[1],
  89.                             &auto_dialogId,
  90.                             &MJ_MSGL40,
  91.                             OFFSET(MSGL40),
  92.                             MS_NONE
  93.                         } ;
  94. static MSGL40    d005d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  95.                              255, 123, 414, 146, 8,15, 8,
  96.                             MS_NONEL40,
  97.                             "ル-プする",
  98.                                1,  12,  12,
  99.                             MS_NONEL40,
  100.                               10,   0
  101.                         } ;
  102.  
  103. /* auto_messageId[2] */
  104.  
  105. static MMIPACKET d006 = {    &auto_messageId[2],
  106.                             &auto_dialogId,
  107.                             &MJ_MSGL40,
  108.                             OFFSET(MSGL40),
  109.                             MS_NONE
  110.                         } ;
  111. static MSGL40    d006d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  112.                              256, 155, 415, 178, 8,15, 8,
  113.                             MS_NONEL40,
  114.                             "変化再生する",
  115.                                1,  12,  12,
  116.                             MS_NONEL40,
  117.                               10,   0
  118.                         } ;
  119.  
  120. /* auto_messageId[4] */
  121.  
  122. static MMIPACKET d007 = {    &auto_messageId[4],
  123.                             &auto_dialogId,
  124.                             &MJ_MSGL40,
  125.                             OFFSET(MSGL40),
  126.                             MS_NONE
  127.                         } ;
  128. static MSGL40    d007d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  129.                              216, 237, 305, 262, 8,15, 8,
  130.                             MS_NONEL40,
  131.                             "再生速度",
  132.                                1,  12,  12,
  133.                             MS_NONEL40,
  134.                               10,   0
  135.                         } ;
  136.  
  137. /* auto_bottonId[0] */
  138.  
  139. static MMIPACKET d008 = {    &auto_bottonId[0],
  140.                             &auto_dialogId,
  141.                             &MJ_DBUTTONL40,
  142.                             OFFSET(DBUTTONL40),
  143.                             MS_NONE
  144.                         } ;
  145. static DBUTTONL40    d008d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  146.                              228, 294, 307, 319, 4,15, 8,
  147.                             MS_PANELL40 | MS_FRAMEL40,
  148.                             igo_autoset,
  149.                             0x0000
  150.                         } ;
  151.  
  152. /* auto_bottonId[1] */
  153.  
  154. static MMIPACKET d009 = {    &auto_bottonId[1],
  155.                             &auto_dialogId,
  156.                             &MJ_DBUTTONL40,
  157.                             OFFSET(DBUTTONL40),
  158.                             MS_NONE
  159.                         } ;
  160. static DBUTTONL40    d009d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  161.                              333, 294, 412, 319,10,15, 8,
  162.                             MS_PANELL40 | MS_FRAMEL40,
  163.                             igo_autocancel,
  164.                             0x0000
  165.                         } ;
  166.  
  167. /* auto_numbox */
  168.  
  169. static MMIPACKET d010 = {    &auto_numbox,
  170.                             &auto_dialogId,
  171.                             &MJ_NUMBOXL40,
  172.                             OFFSET(NUMBOXL40),
  173.                             MS_NONE
  174.                         } ;
  175. static NUMBOXL40    d010d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  176.                              316, 236, 411, 259, 8,15, 8,
  177.                             MS_PANELL40 | MS_FRAMEL40,
  178.                             0,
  179.                                1,  12,  12,
  180.                             MS_NONEL40,
  181.                                0,   0,
  182.                                0,   0, 255,   1,   0,
  183.                              263, 264
  184.                         } ;
  185.  
  186. /* auto_messageId[5] */
  187.  
  188. static MMIPACKET d011 = {    &auto_messageId[5],
  189.                             &auto_dialogId,
  190.                             &MJ_MSGL40,
  191.                             OFFSET(MSGL40),
  192.                             MS_NONE
  193.                         } ;
  194. static MSGL40    d011d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  195.                              231, 296, 304, 316, 8,15, 8,
  196.                             MS_NONEL40,
  197.                             "設定",
  198.                                1,  12,  12,
  199.                             MS_NONEL40,
  200.                               10,   0
  201.                         } ;
  202.  
  203. /* auto_messageId[6] */
  204.  
  205. static MMIPACKET d012 = {    &auto_messageId[6],
  206.                             &auto_dialogId,
  207.                             &MJ_MSGL40,
  208.                             OFFSET(MSGL40),
  209.                             MS_NONE
  210.                         } ;
  211. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  212.                              335, 296, 408, 316, 8,15, 8,
  213.                             MS_NONEL40,
  214.                             "取消",
  215.                                1,  12,  12,
  216.                             MS_NONEL40,
  217.                               10,   0
  218.                         } ;
  219.  
  220.